home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Text⁄Files / gnu egrep ƒ / grep.r < prev    next >
Text File  |  1989-03-23  |  3KB  |  183 lines

  1. /***************
  2.  
  3. Resource description file for GNU e?grep 1.3
  4.  
  5. This tool supports commando (really!).
  6.  
  7. The MPW C 3.0 port done 3/20/89 by David D Zuhn
  8.   MOO!
  9.  
  10. © 1988 Free Software Foundation.
  11.  
  12. Even though they don't like Mac, I do. TS.
  13.  
  14. *****************/
  15.  
  16.  
  17. #include    "SysTypes.r"
  18. #include    "Cmdo.r"
  19.  
  20.  
  21. resource 'vers' (1)
  22.     {
  23.     0x01, 0x03, release, 0x00, verUS,
  24.     "1.3",
  25.     "e?grep 1.3 by Mike Haertel\n© 1988 Free Software Foundation"
  26.     };
  27.     
  28. resource 'vers' (2)
  29.     {
  30.     0x01, 0x00, development, 0x01, verUS,
  31.     "1.0d",
  32.     "GNU Software for Macintosh"
  33.     };
  34.  
  35.  
  36.  
  37. resource 'cmdo' (128)
  38.     {
  39.     {
  40.     290,
  41.     "Print lines matching a regular expression",
  42.         {
  43.         And { {-2, -3, -4, -6, -7, -8} },
  44.         CheckOption
  45.             {
  46.             NotSet, {120, 25, 136, 200}, "Silent (No Output)", "-s",
  47.                 "Run silently producing no output except error messages."
  48.             },
  49.         Or { {-1} },
  50.         CheckOption
  51.             {
  52.             NotSet, {135, 25, 151, 200}, "Print total count only", "-c",
  53.                 "Print a total count of matching lines only."
  54.             },
  55.         And { {-1, -4} },
  56.         CheckOption
  57.             {
  58.             NotSet, {150, 25, 166, 200}, "No filename display", "-h",
  59.                 "Don't display filenames on matches."
  60.                 "This disables the -l option (Filenames only)."
  61.             },
  62.         And { {-1, -3} },
  63.         CheckOption
  64.             {
  65.             notSet, {165, 25, 181, 200}, "Filenames only", "-l",
  66.                 "List files containing matches only."
  67.                 "This disables the -h option (No filename display)."
  68.             },
  69.         NotDependent { },
  70.         CheckOption
  71.             {
  72.             notSet, {120, 200, 136, 335}, "Ignore case", "-i",
  73.                 "Ignore case difference when comparing strings."
  74.             },
  75.         Or { {-1} },
  76.         CheckOption
  77.             {
  78.             notSet, {135, 200, 151, 335},  "Print byte offset", "-b",
  79.                 "Print every match preceded by its byte offset."
  80.             },
  81.         Or { {-1} },
  82.         CheckOption
  83.             {
  84.             notSet, {150, 200, 166, 340},  "Print line numbers", "-n",
  85.                 "Print each match preceded by its line number."
  86.             },
  87.         Or { {-1} },
  88.         CheckOption
  89.             {
  90.             notSet, {165, 200, 181, 343},  "Print non-matches", "-v",
  91.                 "Print only lines that contain no matches for the regular expression."
  92.             },
  93.         NotDependent { },
  94.         TextBox
  95.             {
  96.             gray,
  97.             {110, 20, 182, 345},
  98.             "Options"
  99.             },
  100.         NotDependent { },
  101.         RegularEntry
  102.             {
  103.             "Regular Expression",
  104.             {24, 20, 40, 150},
  105.             {24, 157, 40, 439},
  106.             "",
  107.             ignoreCase,
  108.             "",
  109.             "This regexp style regular expression will be searched for in the input stream"
  110.             },
  111.         NotDependent { },
  112.         RadioButtons
  113.             {
  114.                 {
  115.                 {60, 20, 75, 162}, "Files to search...", "", Set, 
  116.                     "Input a list of one or more files.  Standard input is not used in this case.",
  117.                 {60, 213, 75, 353}, "Redirect Standard", "", NotSet, 
  118.                     "If the standard input file is used, then a list of files is not allowed.  "
  119.                     "The output is always written to standard output."
  120.                 }
  121.             },
  122.         Or { {(1<<12)+11} },
  123.         MultiFiles
  124.             {
  125.             "Click for list...",
  126.             "Input source file. A list of one or more TEXT files.",
  127.             {76, 30, 95, 138},
  128.             "Source file(s) to entab:",
  129.             "",
  130.             MultiInputFiles
  131.                 {
  132.                 {text},
  133.                 "",
  134.                 "",
  135.                 ""
  136.                 }
  137.             },
  138.         Or { {(2<<12)+11} },
  139.         Redirection 
  140.             {
  141.             StandardInput,
  142.             {60, 353}
  143.             },
  144.         NotDependent { },
  145.         Redirection
  146.             {
  147.             StandardOutput,
  148.             {99, 353}
  149.             },
  150.         NotDependent { },
  151.         Redirection
  152.             {
  153.             DiagnosticOutput,
  154.             {138, 353}
  155.             },
  156.             /* [17] */
  157.         NotDependent { },
  158.         Box
  159.             {
  160.             black,
  161.             {52, 27, 58, 28}
  162.             },
  163.         NotDependent { },
  164.         Box
  165.             {
  166.             black,
  167.             {52, 220, 58, 221}
  168.             },
  169.         NotDependent { },
  170.         Box
  171.             {
  172.             black,
  173.             {52, 27, 53, 220}
  174.             },
  175.         Or { {10} },
  176.         DoItButton { }
  177.         }
  178.     }
  179.     };
  180.     
  181.     
  182.     
  183.